package com.jason.library.delegate.property

import kotlin.reflect.KProperty

class Delegate {
    operator fun getValue(thisRef: Any, kProperty: KProperty<*>): String {
        return "$thisRef, thank you for delegating '${kProperty.name}' to me "
    }

    operator fun setValue(thisRef: Any, kProperty: KProperty<*>, value: String) {
        println("$value has been assigned to '${kProperty.name}' in $thisRef")
    }


}